import request from '/@/utils/request';

export function userApi(path:string,params:object) {
	return request({
		url: '/api/admin/user/'+path,
		method: 'post',
		data: params,
	});
}
export function loginInfo(params: object) {
	return request({
		url: '/api/admin/user/loginInfo',
		method: 'post',
		data: params,
	});
}
export function signIn(params: object) {
	return request({
		url: '/api/admin/user/signIn',
		method: 'post',
		data: params,
	});
}
export function isLogin(params: object) {
	return request({
		url: '/api/admin/user/isLogin',
		method: 'post',
		data: params,
	});
}
export function logOut(params: object) {
	return request({
		url: '/api/admin/user/logOut',
		method: 'post',
		data: params,
	});
}
export function clearCache(params: object) {
	return request({
		url: '/api/admin/user/clearCache',
		method: 'post',
		data: params,
	});
}
export function getMenuAdmin(params: object) {
	return request({
		url: '/api/admin/getmenu',
		method: 'get',
		params,
	});
}
export function getinFormList(params: object) {
	return request({
		url: '/api/admin/user/getinFormList',
		method: 'post',
		data: params,
	});
}